//
//  FFmpegDecoder.h
//  FFmpegDemo
//
//  Created by WZ_MAC on 2017/7/28.
//  Copyright © 2017年 wz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
#include "libavutil/pixdesc.h"
#import "H264HwDecoderImpl.h"

@interface FFmpegDecoder : NSObject 

+ (instancetype)createDecoderWithPath: (NSString *)path error: (NSError **)error;

@property (nonatomic, strong) H264HwDecoderImpl *h264Decoder;

- (void)startReadAVPacketAndDecodeNalu;

- (void)stopReadAVPacketAndDecodeNalu;


@end
